// square root of sum of squares of two values
#include <iostream.h>
void main()
{
  float value1;
  float value2;
  float sum;
  
  cout << "First value? ";
  cin >> value1;
  cout << "Second value? ";
  cin >> value2;

  __asm
  {
    fld    value1
    fld    st
    fmul
    fld    value2
    fld    st
    fmul
    fadd
    fsqrt
    fstp  sum
  }
    cout << "The sum is " << sum << endl;
}

